home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 2000
/
MacHack 2000.toast
/
pc
/
The Hacks
/
Softshoe
/
Lisa's Mac Parts
/
Commands
/
Protocols
/
Undoing.cp
< prev
next >
Wrap
Text File
|
2000-06-23
|
308b
|
27 lines
// Undoing.cp
#ifndef Undoing_h
#include "Undoing.h"
#endif
bool Undoing::CanUndoOrRedo() const
{
return ActionIsDone()
? CanUndo()
: CanRedo();
}
void Undoing::UndoOrRedo()
{
if ( ActionIsDone() )
{
if ( CanUndo() )
Undo();
}
else
{
if ( CanRedo() )
Redo();
}
}